package cn.ahaiahaixx.supemarketonline.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cn.ahaiahaixx.supemarketonline.entity.TbType;

/**
 * 
 * @author Aiden Pearce
 *
 */
@Mapper
public interface TbTypeDAO {
  /**
   * queryAll 分页查询所有
   * @return
   * @throws Exception
   */
 public List<TbType> queryAll() throws Exception;
 
 /**
  * 安装主键查询
  * @param tbType
  * @return
  * @throws Exception
  */
 public TbType queryByKey(TbType tbType) throws Exception;
 
 /**
  * 安装名称查询
  * @param tbType typeName值
  * @return typeName查询结果
  * @throws Exception 处理发生错误
  */
 public TbType queryByKeyName(TbType tbType)throws Exception;
 
 /**
  * 添加
  * @param tbType
  * @return
  * @throws Exception
  */
 int add(TbType tbType) throws Exception;
 
 /**
  * 修改
  * @param tbType
  * @return
  * @throws Exception
  */
 int update(TbType tbType)throws Exception;
 
 /**
  * 删除或者反删除
  * @param tbType
  * @return
  * @throws Exception
  */
 int delete(TbType tbType) throws Exception;
}
